/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: xiaotutu
 * Date: 2024-05-26
 * Time: 16:09
 */
public class Test {
    public class Date {
        public int year;
        public int month;
        public int day;
        public void setDay(int y, int m, int d){
            year = y;
            month = m;
            day = d;
        }
        public void printDate(){
            System.out.println(year + "/" + month + "/" + day);
        }

        public Date(int year, int month, int day){
            this.year = year;
            this.month = month;
            this.day = day;
            System.out.println("调用三个参数的构造方法！");
        }

        public Date() {
            System.out.println("abcdef");
        }

        public void main(String[] args) {

            Date d = new Date(2023,6,23);
            d.printDate();
        }
    }
}
